package com.forezp.configclient.springboot2Rabbit;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @version V1.0  </br>
 * @ClassName TopicMessageReceiver </br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 11/26/2018 11:07 AM</br>
 */
@Component
public class TopicMessageReceiver {
    @RabbitListener(queues = "topic.message")
    public void process(String msg) {
        System.out.println("topicMessageReceiver  : " +msg);
    }
    @RabbitListener(queues = "topic.messages")
    public void process2(String msg) {
        System.out.println("topicMessagesReceiver  : " +msg);
    }
}
